<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>users</title>
<jsp:include page="header.jsp"></jsp:include>
<script type="text/javascript">
$(function(){
	//分页显示用户列表
	$('#dg').datagrid({    
	    url:'../order/show', 
	   		title:'用户列表',
			iconCls:'icon-save',
			fitColumns:true,
			striped:true,
			pagination:true,
			rownumbers:true,
			fit:true,
			columns:[[
			{field:'oid',title:'订单编号',width:200},
			{field:'totalprice',title:'订单总额',width:50},
			{field:'name',title:'订单状态',width:100},
			{field:'ordertime',title:'下单时间',width:100},
			{field:'deliverytime',title:'发货时间',width:100},
			{field:'signingtime',title:'发货时间',width:100},
			{field:'refundabletime',title:'退款时间',width:100},
			{field:'sname',title:'所属商铺名字',width:100},
			{field:'spic',title:'所属商铺头像',width:100,height:60,align:'left',
		        formatter:function(value, rec){//使用formatter格式化刷子
		        	return '<img src='+'../'+value+'>';
		        }},
	        {field:'nickname',title:'顾客昵称',width:100}
	    ]], 
	    /* toolbar: [{
			iconCls: 'icon-search',
			handler: showOrderItem,
			text:'查看订单明细',
		}]  */
	}) 
	
});
	/*  //1.更新商铺信息
	function showOrderItem(){
		//清空form
		$("#showOrderItemDialog").dialog("open");
	}
	function closeOrderItemDialog(){
		$("#showOrderItemDialog").dialog("close");
	} */
	
</script>
</head>
<body>
	<table id="dg"></table> 
	 <!-- <div id="showOrderItemDialog" class="easyui-dialog" title="查看订单明细" style="width:600px;padding:10px;"   
        data-options="iconCls:'icon-search',resizable:true,modal:true,closed:true,buttons:[{
				text:'关闭',
				handler:closeOrderItemDialog
			}]"> 
			                                                                                                                                             
	</div>  -->
</body>
</html>